home *** CD-ROM | disk | FTP | other *** search
/ Suzy B Software 2 / Suzy B Software CD-ROM 2 (1994).iso / bootup / boot_n2z / ste2_5 / ste_2_5m.c < prev    next >
C/C++ Source or Header  |  1995-05-02  |  923b  |  40 lines

  1. # include<stdio.h>
  2. # include<dos.h>
  3.  
  4. main()
  5. {
  6.         long * phystop;
  7.         long megs_2_5;
  8.         long * m_config;
  9.           
  10.      megs_2_5 = 2.5 * 1024 *1024;
  11.  
  12.      phystop = 1070;           /* address of physical top of memory */
  13.      SUPER(0);                 /* change to supervisor mode to      */
  14.                                /* gain access to restricted memory  */
  15.                                
  16.  
  17.      m_config = 1060;          /* configuration storage destination */
  18.    
  19.      /* check memory config and set to 2.5 megs if possible */
  20.       
  21.      if((*phystop<=megs_2_5) && (* m_config!=9))
  22.      {
  23.         *phystop = megs_2_5;
  24.         printf("\033\105 JAZZBOX INC 2.5 MEGABYTE DRIVER INSTALLED");
  25.      } 
  26.      else printf("\033\105 DRIVER NOT INSTALLED");  
  27.  
  28.      C_CONIN();             
  29. }
  30.      
  31.                                
  32.  
  33.       
  34.      
  35.         
  36.         
  37.         
  38.  
  39.  
  40.